#include<iostream>
using namespace std;
class solution
{
public:
	int max;
	int middle;
	int min;
	solution(int a,int b,int c)
	{
		int current_max, current_min;
		if (a > b)
		{
			current_max = a;
			current_min = b;
		}
		else
		{
			current_min = a;
			current_max = b;
		}
		if (current_max < c)
		{
			middle = current_max;
			current_max = c;
		}
		else if (current_min > c)
		{
			middle = current_min;
			current_min = c;
		}
		else middle = c;
		max = current_max;
		min = current_min;
	}
};
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	solution s = solution(a, b, c);
	cout << s.min <<" " << s.middle <<" " << s.max << endl;
	return 0;
}